In this scenario, the app will show how to raise a toast notification by calling local notification APIs.

Toast notifications interrupt your users with important, actionable events. Toast notifications can be sent by your app when it is running, scheduled for a later time, or be sent by your app's cloud service through the Windows Push Notification Service (WNS). Toast notifications are described by an XML schema that binds tile contents to system-defined templates. Toast should be actionable but ignorable. If a user misses a toast notification, the app should consider updating the tile or tile badge with information about the missed toast notification.

Press one of the buttons below to see an example of that toast:

TemplateDescription
A single string wrapped across three lines of text
One string of bold text, and one string of regular text wrapped across two lines
One string of bold text wrapped across two lines, and a string of regular text on the third line
One string of bold text on the first line, and two strings of regular text on the second and third lines


Since notifications are just XML, you can create them in many different ways. Above, the NotificationsExtensions library is used. You can also create notifications with strings:


or XML directly:

When you display a toast, its XML will appear here.